package ShapeDemo;

   public class Trapzoid extends Shape{
      double top;
      double bottom;
      double high;
      public void getArea(){
         System.out.println("梯形面积："+(top+bottom)+ high *0.5);
      }
      public Trapzoid(double top,double bottom,double high){
         this.top=top;
         this.high =high;
         this.bottom=bottom;
      }
   }
